package com.spring.cloud.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
/**
 *  @author wushihao
 *  @date   2020/4/5
 *  @desc   返回结果类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result<T> implements Serializable {
    private static final long serialVersionUID = 6188608536424471345L;
    private Integer code;
    private String status;
    private T data;

    public Result(Integer code,String status){
        this(code,status,null);
    }
}
